/**
 * 状态类型管道
 */

import {Pipe, PipeTransform} from '@angular/core';

@Pipe({
  name: 'type'
})
export class TypePipe implements PipeTransform {
  transform(value: any, args?: any): any {
    return args.filter(item => item.value === value)[0].label;
  }

}
